package com.education.course.service.impl;

import java.util.List;
import com.education.common.utils.DateUtils;
import com.education.course.domain.EduCourseSubjectTask;
import com.education.course.mapper.EduCourseSubjectTaskMapper;
import com.education.course.service.IEduCourseSubjectTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author education
 * @date 2024-08-07
 */
@Service
public class EduCourseSubjectTaskServiceImpl implements IEduCourseSubjectTaskService
{
    @Autowired
    private EduCourseSubjectTaskMapper eduCourseSubjectTaskMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EduCourseSubjectTask selectEduCourseSubjectTaskById(Long id)
    {
        return eduCourseSubjectTaskMapper.selectEduCourseSubjectTaskById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param eduCourseSubjectTask 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EduCourseSubjectTask> selectEduCourseSubjectTaskList(EduCourseSubjectTask eduCourseSubjectTask)
    {
        return eduCourseSubjectTaskMapper.selectEduCourseSubjectTaskList(eduCourseSubjectTask);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param eduCourseSubjectTask 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEduCourseSubjectTask(EduCourseSubjectTask eduCourseSubjectTask)
    {
        eduCourseSubjectTask.setCreateTime(DateUtils.getNowDate());
        return eduCourseSubjectTaskMapper.insertEduCourseSubjectTask(eduCourseSubjectTask);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param eduCourseSubjectTask 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEduCourseSubjectTask(EduCourseSubjectTask eduCourseSubjectTask)
    {
        eduCourseSubjectTask.setUpdateTime(DateUtils.getNowDate());
        return eduCourseSubjectTaskMapper.updateEduCourseSubjectTask(eduCourseSubjectTask);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseSubjectTaskByIds(Long[] ids)
    {
        return eduCourseSubjectTaskMapper.deleteEduCourseSubjectTaskByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseSubjectTaskById(Long id)
    {
        return eduCourseSubjectTaskMapper.deleteEduCourseSubjectTaskById(id);
    }
}
